package cn.edu.csust.tysp.backend.dao;

import cn.edu.csust.tysp.backend.domain.Tuning;
import cn.edu.csust.tysp.backend.domain.TuningExample;
import cn.edu.csust.tysp.backend.domain.TuningKey;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TuningMapper {
    long countByExample(TuningExample example);

    int deleteByExample(TuningExample example);

    int deleteByPrimaryKey(TuningKey key);

    int insert(Tuning record);

    int insertSelective(Tuning record);

    List<Tuning> selectByExample(TuningExample example);

    Tuning selectByPrimaryKey(TuningKey key);

    int updateByExampleSelective(@Param("record") Tuning record, @Param("example") TuningExample example);

    int updateByExample(@Param("record") Tuning record, @Param("example") TuningExample example);

    int updateByPrimaryKeySelective(Tuning record);

    int updateByPrimaryKey(Tuning record);

    String selectURL(String tuneName,String instrumentType,String tuneType);
}